package com.klun.spring4.a_oneToThree.web;


import com.klun.spring4.a_oneToThree.domain.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
public class LoginController {
    private UserService userService;

//    @Autowired
//    public void serUserService(UserService userService){
//        this.userService = userService;
//    }


    @RequestMapping(value = {"/","/index.html"})
    public ModelAndView loginBean(){
        return new ModelAndView("login");
    }
//    @RequestMapping("/123")
//    public ModelAndView loginCheck(HttpServletRequest request,LoginCommand loginCommand){
//        return
//    }
}
